<?php
/*
 * PungCMS
 * Menu module 1.0
 */

$module['name'] = 'Main Menu';
$module['folder'] = 'menu';
$module['version'] = '1.0';
$module['author'] = 'Astro';
$module['license'] = 'BSD';
$module['hasadmin'] = 'yes';
$module['hasfront'] = 'no';

$blocks['0']['title'] = 'Main menu';
$blocks['0']['content'] = 'menu_gen.txt';
$blocks['0']['type'] = 'php';
$blocks['0']['system'] = 'no';
$blocks['0']['position'] = 'left';
$blocks['0']['visible'] = 'yes';

$install['0'] = "CREATE TABLE `" . DB_PREFIX . "mainmenu` (
  `id` int(55) NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `link` varchar(255) NOT NULL,
  `parent` int(10) NOT NULL default '0',
  `weight` int(10) NOT NULL default '0',
  PRIMARY KEY (`id`))";

$uninstall['0'] = "DROP TABLE " . DB_PREFIX . "mainmenu";
?>